import React,{Component, ComponentType} from 'react'

class A extends Component {
  render(){
    return(
      <div> 
        xxxx ----- fds fgds gds
      </div>
    )
  }
}

const Hoc =(WrappedComponent:ComponentType)=>{
  return class extends Component {
    render(){
      return(
        <div>
          <WrappedComponent></WrappedComponent>
          <div>@copyright; 版权所有 ts-react</div>
        </div>
      )
    }
  }
}

export default Hoc(A)
